<template>
    <el-row>
        <el-col :span="24">
            <el-form :inline="true"
                :model="newsSearchObj"
                class="search_prod tl">

                <el-form-item label="">
                    <el-input size="small"
                        clearable
                        v-model="newsSearchObj.m_title"
                        placeholder="矿机名称"></el-input>

                </el-form-item>
                <el-form-item>
                    <el-button :loading='$store.state.isLoading'
                        size="small"
                        class="top_weiy"
                        type="primary"
                        @click="onSubmit">查询</el-button>
                    <el-button :loading='$store.state.isLoading'
                        size="small"
                        class="top_weiy"
                        type="primary"
                        @click="delSubmit">一键清除</el-button>
                </el-form-item>

            </el-form>
        </el-col>
    </el-row>
</template>
<script>
export default {
  name: "",
  data() {
    return {
      newsSearchObj: {
        m_title: ""
      },
      createTime: [],
      optionProps: {
        value: "id",
        label: "title",
        children: "z"
      },
      data: [],
      op: []
    };
  },
  methods: {
    delSubmit() {
      this.newsSearchObj = {
        m_title: ""
      };
      this.$emit("sendSearch", this.newsSearchObj);
    },
    onSubmit() {
      console.log(this.newsSearchObj);
      this.$emit("sendSearch", this.newsSearchObj);
    }
  },
  created() {},
  watch: {}
};
</script>
